﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="ContactManager.aspx.cs" Inherits="WebUI.AdminSite.Contact.ContactManager" %>
<%@ Import Namespace="WebUI.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="../../Scripts/JSDatePick.js"></script>
 <script>
     $(document).ready(function () {
         var s1 = $("#<%= txtDatePickerFrom.ClientID %>");
         var s2 = $("#<%= txtDatePickerTo.ClientID %>");
         datepick(s1, s2);
     });
</script>    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="width_full">
    <div class="son-find-module width_full">
        <span class="labelTitle">Subject</span>
        <asp:TextBox ID="txtSubject" CssClass="inputText" runat="server" />
        <span class="labelTitle">Fromdate</span>
        <asp:TextBox ID="txtDatePickerFrom" CssClass="inputText datepicker" Type="Picker" runat="server" />
        <span class="labelTitle">Todate</span>
        <asp:TextBox ID="txtDatePickerTo" CssClass="inputText datepicker" Type="Picker" runat="server" />
        <asp:Button ID="btnSearch" runat="server" Text="Find" 
            onclick="btnSearch_Click"/>
    </div>
   <div style="height: 30px"></div>
   
       <asp:GridView ID="grdContact" CssClass="son-find-module width_full" runat="server" 
        AutoGenerateColumns="False" BorderColor="#CCCCCC" PageSize="15" AllowPaging="True"
        BorderStyle="None" BorderWidth="1px" CellPadding="3" 
            onpageindexchanging="grdContact_PageIndexChanging" >
           <Columns>
               <asp:BoundField DataField="Id" Visible="False" HeaderText="Id" SortExpression="Id" />
               <asp:BoundField DataField="Subject" HeaderText="Subject" 
                   SortExpression="Subject" />
               <asp:BoundField DataField="Status" HeaderText="Status" 
                   SortExpression="Status" />
               <asp:BoundField DataField="CreatedOn" HeaderText="CreatedOn" 
                   SortExpression="CreatedOn" DataFormatString="{0:MM-dd-yyyy}" />
               <asp:BoundField DataField="CreatedUser" HeaderText="CreatedUser" 
                   SortExpression="CreatedUser" />
               <asp:TemplateField HeaderText="View Details">
                <ItemTemplate>
                    <asp:HyperLink ID="hplDetail" runat="server" 
                    NavigateUrl='<%# link.ToAdminContactDetails("ContactDetails.aspx", Eval("Id").ToString()) %>'
                    Text="Details" />
                </ItemTemplate>
            </asp:TemplateField>
           </Columns>
        
            
        
           <FooterStyle BackColor="White" ForeColor="#000066" />
           <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
           <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
           <RowStyle ForeColor="#000066" />
           <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
           <SortedAscendingCellStyle BackColor="#F1F1F1" />
           <SortedAscendingHeaderStyle BackColor="#007DBB" />
           <SortedDescendingCellStyle BackColor="#CAC9C9" />
           <SortedDescendingHeaderStyle BackColor="#00547E" />
    </asp:GridView>
    
   
</div>
    
</asp:Content>

